<template>
    <div class="main flex1 flex-column">
        <page-header v-if="!noHeader"/>
<!--        <keep-alive :exclude="exclude">-->
        <router-view/>
<!--        </keep-alive>-->
    </div>
</template>

<script>
import pageHeader from '@/components/pageHeader.vue';
import routes from '@/router/routes';
export default {
  name: 'pageMain',
  components: {
    pageHeader
  },
  data() {
    return {
      noHeader: false
    }
  },
  watch: {
    $route: {
      handler(N) {
        this.noHeader = N.meta.noHeader
      },
      immediate: true,
      deep: true
    }
  },
  computed: {
    // exclude() {
    //   const doloop = () => {
    //
    //   }
    //   routes
    // }
  }
}
</script>

<style scoped>

</style>